package com.smarttable.ysd.floatwindow;

import android.content.Context;
import android.provider.Settings;
import android.util.Log;



public class SelectRotation{
	
	private static final String TAG = "SelectRotation";
	private Context mContext;
	
	
	SelectRotation(Context context){
		mContext = context;
	}
	
	public int setRotation(){
		int status = getRotation();
		if(status == 0){
			status = 2;
		}else{
			status = 0;
		}
		return status;
	}
	
	private int getRotation(){
		int status = 0;
		status = Settings.System.getInt(mContext.getContentResolver(), "Screen_Rotation", 0);
		return status;
	}
}